package com.example.strategyproject.strategy;

import org.springframework.stereotype.Component;

/**
 * @author ycd0075
 * @date 2024-01-25 20:42
 */
@Component
public class DiscountStrategy implements IPromotionStrategy{
    @Override
    public String getType() {
        return "DiscountStrategy";
    }

    @Override
    public void execute() {
        System.out.println("打折促销，全场9折");
    }
}
